package cn.cdqf.service.impl;

import cn.cdqf.bean.TClass;
import cn.cdqf.mapper.ClassMapper;
import cn.cdqf.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ClassServiceImpl implements ClassService {

    @Autowired
    private ClassMapper classMapper;
    @Override
    public List<TClass> getClassName() {
        return classMapper.getClassName();
    }

    @Override
    public List<TClass> queryClass() {
        return classMapper.queryClass();
    }

    @Override
    public int deleteClass(Integer id) {
        return classMapper.deleteClass(id);
    }

    @Override
    public TClass queryClassById(Integer id) {
        return classMapper.queryClassById(id);
    }

    @Override
    public int updateClass(TClass tClass, int id) {
        return classMapper.updateClass(tClass,id);
    }

    @Override
    public int addClass(TClass tClass) {
        return classMapper.addClass(tClass);
    }
}
